<script setup>
    // let a=1;
    import {useRouter} from 'vue-router'
    // import { useStore } from 'vuex'
    import {computed,ref} from 'vue'
    const router = useRouter()
    function quit(){
        router.push('/login')
    }
    // const store=useStore()
    const count=computed(() => store.state.count)
    const increment=() => store.commit('increment')
    const value = ref(new Date())
</script>

<template>
    <h1>主页</h1>
    <p>{{count}}</p>
    <br>
    <button @click="increment">+1</button>
    <br>
    <button @click="quit">退出登录</button>
    <el-button type="primary">Primary</el-button>
    <br>
    <el-calendar v-model="value" />
</template>

<style scoped>

</style>
